﻿@model proyectoPescarShop.Models.Producto
@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2> 

@using (Html.BeginForm()) { 
@Html.ValidationSummary(true) 

<fieldset> 
<legend>Producto</legend> 

<div class="editor-label"> 
@Html.LabelFor(model => model.nombre) 
</div> 
<div class="editor-field"> 
@Html.EditorFor(model => model.nombre) 
@Html.ValidationMessageFor(model => model.nombre) 
</div> 

<div class="editor-label"> 
@Html.LabelFor(model => model.modelo) 
</div> 
<div class="editor-field"> 
@Html.EditorFor(model => model.modelo) 
@Html.ValidationMessageFor(model => model.modelo) 
</div> 

<div class="editor-label"> 
@Html.LabelFor(model => model.marca) 
</div> 
<div class="editor-field"> 
@Html.EditorFor(model => model.marca) 
@Html.ValidationMessageFor(model => model.marca) 
</div> 

<div class="editor-label"> 
@Html.LabelFor(model => model.precio) 
</div> 
<div class="editor-field"> 


@Html.EditorFor(model => model.precio) 
@Html.ValidationMessageFor(model => model.precio) 
</div> 

<div class="editor-label"> 
@Html.LabelFor(model => model.descripcion) 
</div> 
<div class="editor-field"> 
@Html.EditorFor(model => model.descripcion) 
@Html.ValidationMessageFor(model => model.descripcion) 
</div> 
<div class="editor-label"> 
@Html.LabelFor(model => model.id) 
@*//</div> 
//<div class="editor-field"> 
//@Html.EditorFor(model => model.id) 
//@Html.ValidationMessageFor(model => model.id) 
//</div> *@
@*@Html.HiddenFor(model => model.id) *@

<p> 
<input type="submit" value="Editar" /> 
</p> 
</fieldset> 
} 

<div> 
@Html.ActionLink("Back to List", "Index") 
</div>

